authApp.value('page','school_dataFill');
authApp.controller("observationPointController",function($scope,$http,$location,$getQueryString,$splice){
    $scope.preNum=$getQueryString("preNum");

    var requestJson={'fid':$getQueryString("pid")};
    $scope.getAML=function(){
        $http({
            method:'post',
            url:apis.queryAllObservationPoint,
            data:requestJson,
        }).success(function(response){
            if(response.code=="000000"){
                $scope.list=response.data;
                angular.forEach($scope.list,function(data,index,array){
                    data.number = index + 1;
                });
            }else{
                alert(response.errorMsg);
            }
        }).error(function(){
            alert("服务器打瞌睡了，请稍等！");
        })
    }
    $scope.turnTo=function(pid){
        location.href="monitorSeeMap.html?pid="+pid;
    }
    $scope.getAML();
})